package com.lankystar.sos.service;

import java.util.Map;

import com.lankystar.sos.common.Page;
import com.lankystar.sos.model.Message;
import com.lankystar.sos.model.Room;


public interface IRoomInterface {
	/**
	 * 发起求救是创建  聊天室
	 * @param record
	 */
	void addRoomMethod(Room record);
	
	void deleteRoomMethod(Room record);
	
	void saveMessageMethod(Integer userId,Integer sos_id,String message);
	
	Map<String, Object> queryMessageBysos_idMethod(Integer sos_id,int pageSize,int pageNow);
	
	Map<String, Object> queryMessageByTime(Integer sos_id,int pageSize,int pageNow,String type);
}
